$(function(){

/**
 * 填入
 */
    url_queryAllRoles = "oa-role/tbRoleAction_queryAllRoles.action";
    req_queryAllRoles = {};
    $.post(url_queryAllRoles, req_queryAllRoles, function(data){
        var sh = "<option value=''>选择角色</option>";
        $.each(data.tbRoles, function(i, o){
            sh += "<option value="+o.tbRoleId+">";
            sh += o.name;
            sh += "</option>";
        });
		$("#RoleList").append(sh);
    });
	
	/**
	 * 得到
	 */
	$("#RoleList").change(function(){
		$("#roleId").text($("#RoleList option:selected").attr("value"));
	});
    
});
